.modalLog-title=t('apps.files.log_title', :filename => @filename, :instance => @instance, :name => @name)
.modalLog-flash
.modalLog-content
  %table#app-logfile-table
    %thead
      %tr
        %th=t('apps.files.log_head')
    %tbody
      - if !@file_contents.nil?
        - @file_contents.each do |row|
          %tr
            %td= row

- if flash[:alert]
  :javascript
    $(function() {
      $('#flash-content').empty();
      $('.modalLog-flash').empty();
      $('.modalLog-flash').append('<div class="alert">#{escape_javascript(flash[:alert])}</div>');
      $('.modalLog-flash').fadeIn('slow');
    });
- else
  :javascript
    $(function() {
      $('#flash-content').empty();
      $('.modalLog-flash').empty();
      appLogfileTable_Settings = {
        'bAutoWidth':      false,
        'bProcessing':     true,
        'bFilter':         true,
        'bLengthChange':   false,
        'bSort':           false,
        'bStateSave':      false,
        'iDisplayLength':  20,
        'oLanguage':       dataTables_lang,
        'sPaginationType': 'full_numbers'
      };
      appLogfileTable = $('table#app-logfile-table').dataTable(appLogfileTable_Settings);
    });